/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.bank.entity;


import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.wealth.merchant.entity.BusinessDistrict;
import com.wealth.merchant.entity.Merchant;
import com.wealth.system.entity.Corporation;

@Entity
@Table(name = "bank_picked")
public class Picked implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String address;
	private Integer status;
	private Date createTime;
	private BusinessDistrict district;
	private Corporation corp;
	/* ---------------- method ----------------*/
	
	
	
	@ManyToOne
	@JoinColumn(name="corp_id")
	public Corporation getCorp() {
		return corp;
	}

	public void setCorp(Corporation corp) {
		this.corp = corp;
	}

	@ManyToOne
	@JoinColumn(name="district_id")
	public BusinessDistrict getDistrict() {
		return district;
	}

	public void setDistrict(BusinessDistrict district) {
		this.district = district;
	}


	public Picked(){
	}

	

	public Picked(Long id){
		this.id = id;
	}

	/* ---------------- getter/setter ----------------*/
	
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	

	
	@Column(name = "address")
	public String getAddress() {
		return address;
	}
	
	public void setAddress(String address) {
		this.address = address;
	}
	
	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}
	
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
}



